package com.gtw.modules.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.gtw.modules.entity.TbCommodity;
import com.gtw.modules.entity.TbProperty;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/** 商品属性
 * @author wuye
 */
@Mapper
@Repository
public interface TbPropertyDao {
    List<TbProperty> queryPageList(Page<TbProperty> page, Map<String, Object> map);

    int deleteByPrimaryKey(Integer id);

    int insert(TbProperty record);

    int insertSelective(TbProperty record);

    TbProperty selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbProperty record);

    int updateByPrimaryKey(TbProperty record);

    List<TbProperty> findaLLProperty();

    List<TbProperty> findByName(String propertyname);

    List<TbProperty> findByData(String propertyname,String propertyvalue);
}